package nl.mikoosoft.sport.stoer.domain;

import org.springframework.roo.addon.entity.RooEntity;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.tostring.RooToString;
import javax.validation.constraints.NotNull;
import javax.persistence.Column;
import nl.mikoosoft.sport.stoer.domain.UserRole;
import javax.persistence.Enumerated;
import nl.mikoosoft.sport.stoer.domain.UserStatus;
import javax.persistence.EnumType;
import javax.validation.constraints.Min;
import javax.validation.constraints.Max;

@RooJavaBean
@RooToString
@RooEntity(identifierColumn = "account_id")
public class Account {

    @NotNull
    @Column(name = "username")
    private String username;

    @NotNull
    @Column(name = "password")
    private String password;

    @NotNull
    @Enumerated(EnumType.STRING)
    private UserRole userRole;

    @Enumerated(EnumType.STRING)
    private UserStatus userStatus;

    private String emailAddress;

    private String firstName;

    private String lastName;

    private String openIdentifier;

}
